<?php
  //Gennesis Software Manual - Page 9

  $pdf->AddPage();

  //$pdf->Image('./Genesis/Gen-soft/Gsm-02.png',0,0,210 ,297);
  //add_raster(1);


  $margin = array
  (
    'tab_1' => 29,
    'tab_2' => 35,
    'tab_3' => 41,
    'tab_4' => 139
  );


  $pdf->SetDrawColor(0,0,0);
  $pdf->SetTextColor(0,0,0);
  $pdf->SetFont('Arial','',10);
  $pdf->SetLineWidth(0.4);


  new_line(38);


  $pdf->Bookmark('2. Z80 Memory Map',2,current_line() - 10);
  $pdf->Text($margin['tab_2'],current_line(),'2.');
  $pdf->Text($margin['tab_3'],current_line(),'Z80 MEMORY MAP');


  new_line(48.4);
  set_text_space(3.9);
 
  new_line();
    gentab_Start(0,$margin['tab_3'] + 17,35,17);
    gentab_Text(0,'0 0 0 0 H','L',-1);
  new_line();
    gentab_CenterText(0,'SOUND RAM');
  new_line();
    gentab_Start(1,$margin['tab_2'] + 70,30,0,4);
    gentab_Text(1,'0 4 0 0 0 H','R',-1);
  new_line();
    gentab_Text(0,'2 0 0 0 H','L');
    gentab_CenterText(1,'YM2612 A0');
    gentab_Text(1,'0 4 0 0 1 H','R');
  new_line();
    gentab_Line(0);
    gentab_Line(1);
  new_line();
    gentab_CenterText(0,'SEGA');
    gentab_CenterText(1,'YM2612 D0');
    gentab_Text(1,'0 4 0 0 2 H','R');
  new_line();
    gentab_CenterText(0,'RESERVED');
    gentab_Line(1);
  new_line();
    gentab_CenterText(1,'YM2612 A1');
    gentab_Text(1,'0 4 0 0 3 H','R');
  new_line();
    gentab_Line(1);
  new_line();
    gentab_Text(0,'4 0 0 0 H','L');
    gentab_CenterText(1,'YM2612 D1');
    gentab_Text(1,'0 4 0 0 4 H','R');
  new_line();
    gentab_Line(0);
    gentab_Line(1);
  new_line();
    gentab_CenterText(0,'SOUND CHIP');
    gentab_CenterText(1,'ACCESS');
  new_line();
    gentab_Text(0,'6 0 0 0 H','L');
    gentab_CenterText(0,'(YM2612)');
    gentab_CenterText(1,'PROHIBITED');
    gentab_Text(1,'0 6 0 0 0 H','R');
  new_line();
    gentab_Line(0,12);
    gentab_Line(1);
  new_line();
    gentab_CenterText(0,'MISCELLANEOUS');
    gentab_CenterText(1,'BANK');
  new_line();
    gentab_CenterText(1,'REGISTER');
    gentab_Text(1,'0 6 0 0 1 H','R');
  new_line();
    gentab_Line(1);
  new_line();
    gentab_CenterText(1,'ACCESS');
  new_line();
    gentab_Text(0,'8 0 0 0 H','L');
    gentab_CenterText(1,'PROHIBITED');
    gentab_Text(1,'0 7 F 1 1 H','R');
  new_line();
    gentab_Line(0);
    gentab_Line(1);
  new_line();
    gentab_CenterText(0,'68000 BANK');
    gentab_CenterText(1,'PSG 76489');
    gentab_Text(1,'0 7 F 1 2 H','R');
  new_line();
    gentab_Line(1);
  new_line();
    gentab_CenterText(1,'ACCESS');
  new_line();
    gentab_CenterText(1,'PROHIBITED');
  new_line();
    gen_table_end(1);
  new_line();
  new_line();
    gen_table_end(0);
  new_line();
    gentab_Text(0,'F F F F H','L');

  new_line(172);
  $pdf->Bookmark('3. 68000 Access to Z80 Memory',2,current_line() - 10);
  $pdf->Text($margin['tab_2'],current_line(),'3.');
  $pdf->Text($margin['tab_3'],current_line(),'68000 Access to Z80 Memory');

  new_line();
  new_line();
  new_line();
  new_line();
    gentab_Start(2,$margin['tab_3'] + 23,28,23);
    gentab_Text(2,'$ A 0 0 0 0 0','L',-1);
  new_line();
    gentab_CenterText(2,'SOUND RAM');
  new_line();
    gentab_Start(3,$margin['tab_3'] + 62,46,0,4);
    $half_width = ($gen_tables[3]['width'] / 2);
    gentab_VerLine_Start(3,0,$half_width);
    gentab_Text(3,'$ A 0 4 0 0 0','R',-1);
  new_line();
    gentab_Text(2,'$ A 0 2 0 0 0','L');
    gentab_CenterText(3,'YM2612 A0',0,$half_width);
    gentab_CenterText(3,'YM2612 D0',$half_width,$half_width);
    gentab_Text(3,'$ A 0 4 0 0 2','R');
  new_line();
    gentab_Line(2);
    gentab_Line(3);
  new_line();
    gentab_CenterText(2,'SEGA');
    gentab_CenterText(3,'YM2612 A1',0,$half_width);
    gentab_CenterText(3,'YM2612 D1',$half_width,$half_width);
  new_line();
    gentab_Text(2,'$ A 0 4 0 0 0','L');
    gentab_CenterText(2,'RESERVED');
    gentab_Text(3,'$ A 0 4 0 0 4','R');
  new_line();
    gentab_Line(2);
    gentab_Line(3);
    gentab_VerLine_End(3,0);
  new_line();
    gentab_CenterText(2,'SOUND CHIP');
    gentab_CenterText(3,'ACCESS');
  new_line();
    gentab_Text(2,'$ A 0 6 0 0 0','L');
    gentab_CenterText(2,'(YM2612)');
    gentab_CenterText(3,'PROHIBITED');
    gentab_Text(3,'$ A 0 6 0 0 0','R');
  new_line();
    gentab_Line(2,12);
    gentab_Line(3);
    gentab_VerLine_Start(3,1,$half_width);
  new_line();
    gentab_CenterText(2,'BANK');
    gentab_CenterText(3,'BANK',0,$half_width);
  new_line();
    gentab_Text(2,'$ A 0 8 0 0 0','L');
    gentab_CenterText(2,'REGISTER');
    gentab_Text(3,'$ A 0 6 0 0 2','R');
  new_line();
    gentab_Line(2);
    gentab_Line(3);
    gentab_VerLine_End(3,1);
  new_line();
    gentab_CenterText(2,'ACCESS');
    gentab_CenterText(3,'ACCESS PROHIBITED');
  new_line();
    gentab_CenterText(2,'PROHIBITED');
    gentab_End(3);
  new_line();
  new_line();
    gentab_End(2);
    gentab_Text(2,'$ A 0 F F F F','L',1);

  add_footer($pdf,'02/19/92','2');
?>
